package com.zy.service.impl;

import java.util.List;

import com.zy.dao.VisitDao;
import com.zy.dao.impl.VisitDaoImpl;
import com.zy.entity.Visit;
import com.zy.service.VisitService;

public class VisitServiceImpl implements VisitService{

	VisitDao vd = new VisitDaoImpl();
	@Override
	public List<Visit> queryall() {
		return vd.queryall();
	}
	@Override
	public Visit queryById(int id) {
		
		return vd.queryById(id);
	}
	@Override
	public void update(Visit visit) {
		vd.update(visit);
		
	}
	@Override
	public List<Visit> queryByAddress(String address) {
		
		return vd.queryByAddress(address);
	}
	@Override
	public void insert(Visit visit) {
		vd.insert(visit);
		
	}
	@Override
	public List<Visit> queryByCU(int cvid, int uvid) {
		return vd.queryByCU(cvid, uvid);
	}
	@Override
	public List<Visit> queryByCUA(int cvid, int uvid, String vaddress) {
		return vd.queryByCUA(cvid, uvid, vaddress);
	}

}
